//
//  ZLEmojiCell.swift
//  Sina
//
//  Created by 朱玉龙 on 16/10/8.
//  Copyright © 2016年 朱玉龙. All rights reserved.
//

import UIKit

class ZLEmojiCell: UICollectionViewCell {
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        contentView.addSubview(titleLabel)
        
        titleLabel.snp.makeConstraints { (make) in
            make.centerY.leading.equalTo(self.contentView)
        }
        
    }
    
    var indexPath: IndexPath? {
        
        didSet {
            self.titleLabel.text = "\(indexPath?.section)组\(indexPath?.item)行"
        }
        
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    lazy var titleLabel: UILabel = {
        
        let l = UILabel(title: "", color: UIColor.white, fontSize: 27)
        
        return l
    }()
    
}
